package com.aaa.system.controller;

import com.aaa.common.entity.DictData;
import com.aaa.common.vo.Result;
import com.aaa.system.service.DictDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @program: aaa-hospital-parent
 * @description:
 * @author: 闫克起
 * @create: 2024-05-22 14:43
 **/
@RestController
@RequestMapping("/system/dictData")
public class DictDataController {
    @Autowired
    private DictDataService dictDataService;

    @GetMapping("{type}")
    public Result<List<DictData>> type(@PathVariable String type){
       return dictDataService.getType(type);
    }
}
